package app.page;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import org.openqa.selenium.By;

public class MainPage extends BasePage{

    By contact= By.cssSelector("*[text='通讯录']");
    By workspace= By.cssSelector("*[text='工作台']");

    public MainPage(AppiumDriver<MobileElement> driver) {
        super(driver);
    }

    public ContactPage toContact(){
        click(contact);
        return new ContactPage(driver);
    }

    public WorkspacePage toWorkspace(){
        click(workspace);
        return new WorkspacePage(driver);
    }
}
